package org.ycy.data.generator.utils;

import org.ycy.data.generator.constants.Symbol;

/**
 * @program: data-generator
 * @ClassName SqlUtils
 * @description:
 * @author: ycy
 * @create: 2023-06-17 23:20
 * @Version 1.0
 **/
public class SqlUtils {

    public static String wrapField(Object fieldValue) {

        if (fieldValue == null) {
            return "null";
        } else {
            if (fieldValue instanceof Number) {
                return fieldValue.toString();
            } else {
                return Symbol.SQM + fieldValue + Symbol.SQM;
            }
        }
    }
}